$(".sumbit").click(function () {
    var username=$("#username").val();
    var user=$("#user").val();
    var content=$("#content").val();
    var title=$("#title").val();
    var tid=$("#tid").val();
    var time=$("#time").val();
    var prise=$("#prise").val();
    var collect=$("#collect").val();
    var read=$("#read").val();
    var reward=$("#reward").val();
    var comment=$("#comment").val();
    var word=$("#word").val();


    $.ajax({
        url:"/blog/addBlogByBack",
        type:"post",
        data:{
            bId:username,
            uId:user,
            bAddress:content,
            bTitle:title,
            tId:tid,
            bTime:time,
            bPraise:prise,
            bCollection:collect,
            bRead:read,
            bReward:reward,
            bComment:comment,
            bWord:word,
        },
        success :function (data) {
            if (data.success){
                alert(data.msg);
                window.location.href="/blog/list";
            }
        },
        error:function () {

        }

    });

});